<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
$config = Zend_Registry::get('config');
header("Cache-Control: public");
if(!Zend_Auth::getInstance()->hasIdentity())
{    
?>
<html>
<head>
  <meta charset="utf-8">
  <title>Login Form</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <section class="container">
    <div class="login">
      <?php echo $this->layout()->content ?>     
    </div>
    
  </section>
</body>
</html>
<?php
}
else
{
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo $config->sys_info->name_system; ?></title>
        <link rel="stylesheet" type="text/css" href="/css/style_dhtn.css">
        <!-- menu -->
        <link rel="stylesheet" type="text/css" href="/css/menuH.css">
        <link href="/js/ui/jquery-ui.css" rel="stylesheet">
        <!--[if gte IE 9]>
        <style type="text/css">
        .ddsmoothmenu, .ui-widget-header, .rd, .gr, .yl {
        filter: none;
        }
        </style>
        <![endif]-->
        <script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="/js/menu.js"></script>
        <script type="text/javascript" src="/js/devTVTK.js"></script>
        <script type="text/javascript" src="/js/ui/jquery-ui.js"></script>
        <script type="text/javascript">
            ddsmoothmenu.init({
                mainmenuid: "smoothmenu1", //menu DIV id
                orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
                classname: 'ddsmoothmenu', //class added to menu's outer DIV
                //customtheme: ["#0088ff", "#18374a"], //override color (background and hover) | main color in .css file
                contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
            });
            function selectedMenu(el,level,url)
            {
                if(level==1)
                {
                    $('a').removeClass('selected');
                    $('a').removeClass('selectedMenu');
                    $(el).addClass('selected');
                }
                else
                {
                    $('a').removeClass('selected');
                    $('a').removeClass('selectedMenu');
                    $('#menu'+level).addClass('selectedMenu');
                }
                $.ajax({
                    url: url,
                    type: 'post',
                    cache: false,
                    success: function(data) {
                        $("#content").html(data);
                    }
                });
            }
        </script>
        <!-- -->
    </head>
    <body id="top">
        <div id="warrper">
            <!-- ghep file logo.html ----------->
            <div class="banner_logo">
                <img src="/images/banner.png">
                <?php 
                $userLoged=Zend_Auth::getInstance()->getIdentity();
                ?>
                    <div class="name"><b>Xin chào <?php echo $userLoged->USERNAME;?> <a href="/authentication/authentication/logout" style="color: red">[Thoát]</a></b></div>	 
            </div>
            <!-- end ghep file logo.html ----------->
            <!-- ghep file menu.html ----------->
            <div id="smoothmenu1" class="ddsmoothmenu">
                <!-- ID = mainmenuid above -->
                <ul>
                    <li><a id="menu0" class="home selected" href="javascript:void(0);" onclick="selectedMenu(this,1,'/')">Trang chủ</a></li>
                    <li><a id="menu1" class="about" href="javascript:void(0);" onclick="selectedMenu(this,1,'/')">giới thiệu</a></li>
                    <li><a id="menu2" class="regis" href="javascript:void(0);" onclick="selectedMenu(this,1,'/default/index/tvtkbuoc1')">Tư vấn thiết kế</a></li>
                    <li><a id="menu3" class="regis" href="javascript:void(0);" onclick="selectedMenu(this,1,'/default/index/tvgsbuoc1')">Tư vấn giám sát</a></li>
                    <li><a id="menu4" class="pages" href="javascript:void(0);">Danh sách hồ sơ</a>
                        <ul>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,4,'/tracuu/index/danhsachtvtk')">Hồ sơ TVTK(Chờ thẩm định)</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,4,'/tracuu/index/danhsachtvgs')">Hồ sơ TVGS(Chờ thẩm định)</a></li>
                        </ul>
                    </li>
                    <li><a id="menu5" class="search" href="javascript:void(0);">Tra cứu</a>
                        <ul>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvtkok')">Hồ sơ TVTK (Công bố)</a></li>                                                        
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvtkkhongcongbo')">Hồ sơ TVTK (Không công bố)</a></li>                     
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvtkno')">Hồ sơ TVTK (Không thẩm định)</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvgsok')">Hồ sơ TVGS (Công bố)</a></li>                                                        
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvgskhongcongbo')">Hồ sơ TVGS (Không công bố)</a></li>                     
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,5,'/tracuu/index/danhsachtvgsno')">Hồ sơ TVGS (Không thẩm định)</a></li>
                        </ul>
                    </li>
                    <li><a id="menu6" class="search" href="javascript:void(0);">Quản trị hệ thống</a>
                        <ul>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/linhvuc/index')">Danh mục lĩnh vực</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/caphang/index')">Danh mục cấp hạng</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/tieuchi/index')">Danh mục tiêu chí</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/nhomcapct/index')">Danh mục nhóm cấp công trình</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/thongtindichvu/index')">Danh mục thông tin dịch vụ</a></li>
                            <li><a href="javascript:void(0);" onclick="selectedMenu(this,6,'/danhmuc/bosungthongtindichvu/index')">Danh mục thông tin CLDV</a></li>
                        </ul>
                    </li>
                </ul>
                <!-- bo tri search -->
                
                <!-- end -->
            </div>
            <!-- end ghep file menu.html ----------->
            <!-- bố trí content ------------------------------------------------------------------------------------>
            <div id="content">                  
                    <?php echo $this->layout()->content ?>
            </div>
            <!-- end bố trí content ------------------------------------------------------------------------------------>
            <!-- bố trí fotter ------------------------------------------------------------------------------------->
            <div id="fotter">
                <!-- bo tri fotter_top.html 
                <div class="fotter_top">
                    <ul>
                        <li><a href="/">Trang chủ</a></li>
                        <li><a href="#">Góp ý</a></li>
                        <li style="border:none;"><a href="#">Liên hệ</a></li>
                    </ul>
                </div>
                bo tri fotter_bottom.html -------->
                <div class="fotter_bottom">
                    <p class="tt_01">Bản quyền (C) 2014-2015 </p>
                </div>
                <!----------------->
            </div>
            <!-- end bố trí fotter ------------------------------------------------------------------------------------->
        </div>
        <div class="alert">
            <a href="#">Có hồ sơ cần xử lý</a>
        </div>
    </body>
</html>
<?php } ?>

